@echo off

@SET GACUTIL="C:\Release\Project\1.0\gacutil.exe"

@Set DllPath=C:\Release\Project\1.0\

@Set ProjectComponentDll=My.Project.Components
@Set ProjectOrchestrationDll=My.Project.Orchestrations
@Set ProjectPipelineComponentDll=My.Project.PipelineComponents
@Set ProjectPipelineDll=My.Project.Pipelines
@Set ProjectSchemasDll=My.Project.Schemas
@Set ProjectTransformsDll=My.Project.Transforms

SET BIZINSTALLATION=
FOR /F "tokens=2* delims= " %%A IN ('REG QUERY "HKLM\SOFTWARE\Microsoft\BizTalk Server\3.0" /v InstallPath') DO SET BIZINSTALLATION=%%B
echo %BIZINSTALLATION%

echo "GACUTIL.exe path is" %GACUTIL%
echo "Dll path is" 


Echo *****  Removing Cards Hub dlls in GAC ***** 
Echo 

%GACUTIL% /u "%ProjectComponentDll%"
echo %ProjectComponentDll% removed from GAC
%GACUTIL% /u "%ProjectPipelineComponentDll%"
echo %ProjectPipelineComponentDll% removed from GAC
%GACUTIL% /u "%ProjectPipelineDll%"
echo %ProjectPipelineDll% removed from GAC
%GACUTIL% /u "%ProjectSchemasDll%"
echo %ProjectSchemasDll% removed from GAC
%GACUTIL% /u "%ProjectTransformsDll%"
echo %ProjectTransformsDll% removed from GAC
%GACUTIL% /u "%ProjectOrchestrationDll%"
echo %ProjectOrchestrationDll% removed from GAC

pause
